<?hh

class X {
  public function generator() {
    yield 1;
    yield 2;
  }
}
